package com.sq.partner.manager.dao;

import java.util.List;

import com.sq.partner.manager.mybatis.model.GatewayRoleMenu;

/**
 * 角色菜单
 * @author zhihuizhao
 *
 */
public interface IGatewayRoleMenuDao {


	/**
	 * 给某角色添加菜单
	 * @param roleMenu
	 * @return
	 * @throws Exception
	 */
	boolean addMenusForRole(GatewayRoleMenu roleMenu) throws Exception;
	
	/**
	 * 删除某角色下所有菜单
	 * @param roleMenu
	 * @return
	 * @throws Exception
	 */
	boolean delMenusForRole(Long roleId) throws Exception;
	
	public boolean delMenusForMenu(Long menuId) throws Exception ;
	/**
	 * 查询某角色下所有菜单
	 * @param rm
	 * @return
	 * @throws Exception
	 */
	List<GatewayRoleMenu> queryAllMenusOfCurRole(GatewayRoleMenu rm) throws Exception;
}
